DataOrBuilder

interface DataOrBuilder : MessageOrBuilder

Inheritors

Functions

Link copied to clipboard
abstract fun getBitfield(): Int

Bitfield for extra flags. First use is to indicate that user approves the packet being uploaded to MQTT.
optional uint32 bitfield = 9;
Link copied to clipboard
abstract fun getDest(): Int

The address of the destination node.
This field is is filled in by the mesh radio device software, application
layer software should never need it.
RouteDiscovery messages _must_ populate this.
Other message types might need to if they are doing multihop routing.
fixed32 dest = 4;
Link copied to clipboard
abstract fun getEmoji(): Int

Defaults to false. If true, then what is in the payload should be treated as an emoji like giving
a message a heart or poop emoji.
fixed32 emoji = 8;
Link copied to clipboard
abstract fun getPayload(): ByteString

TODO: REPLACE
bytes payload = 2;
Link copied to clipboard

Formerly named typ and of type Type
.meshtastic.PortNum portnum = 1;
Link copied to clipboard
abstract fun getPortnumValue(): Int

Formerly named typ and of type Type
.meshtastic.PortNum portnum = 1;
Link copied to clipboard
abstract fun getReplyId(): Int

If set, this message is intened to be a reply to a previously sent message with the defined id.
fixed32 reply_id = 7;
Link copied to clipboard
abstract fun getRequestId(): Int

Only used in routing or response messages.
Indicates the original message ID that this message is reporting failure on. (formerly called original_id)
fixed32 request_id = 6;
Link copied to clipboard
abstract fun getSource(): Int

The address of the original sender for this message.
This field should _only_ be populated for reliable multihop packets (to keep
packets small).
fixed32 source = 5;
Link copied to clipboard
abstract fun getWantResponse(): Boolean

Not normally used, but for testing a sender can request that recipient
responds in kind (i.e. if it received a position, it should unicast back it's position).
Note: that if you set this on a broadcast you will receive many replies.
bool want_response = 3;
Link copied to clipboard
abstract fun hasBitfield(): Boolean

Bitfield for extra flags. First use is to indicate that user approves the packet being uploaded to MQTT.
optional uint32 bitfield = 9;